﻿<Page x:Class="SGTv2.Views.Pages.GridPrincipalPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="300" d:DesignWidth="627"
      DataContext="{Binding Main, Source={StaticResource Locator}}"
	Title="GridPrincipalPage">

    <Grid>
        <DataGrid AutoGenerateColumns="False" Name="dataGrid1" ItemsSource="{Binding Path=RemitosRecientes}" Style="{StaticResource PrettierDataGridStyle}" GridLinesVisibility="Horizontal" HorizontalGridLinesBrush="Gainsboro" RowHeaderWidth="0">
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding Path=RemitoID}" Header="Cod." />
                <DataGridTemplateColumn Header="" Width="SizeToCells" IsReadOnly="True">
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <Image Source="/SGTv2;component/Img/truck-icon.png" />
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
                <DataGridTextColumn Binding="{Binding Path=Peso}" Header="Peso" Width="15*"/>
                <DataGridTextColumn Binding="{Binding Path=Proveedor.Nombre}" Header="Proveedor" Width="60*" />
                <DataGridTextColumn Binding="{Binding Path=Referencia}" Header="Remito externo" Width="50*"/>
                <DataGridTextColumn Binding="{Binding Path=Fecha}" Header="Fecha" Width="120" />
                <DataGridTextColumn Binding="{Binding Path=Sector.Nombre}" Header="Sector" Width="30*"/>
            </DataGrid.Columns>
        </DataGrid>
    </Grid>
</Page>
